<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>土地</title>
</head>
<body>
<div id="toolbarDemo" style="display: none">
    <div class="layui-btn-container" style="float:left">

    </div>
</div>
<script type="text/html" id="authoritiesTbBar">
</script>
<div class="layui-fluid vue-box">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 表格工具栏 -->
            <form class="layui-form toolbar el-form">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">土地名称:</label>
                        <div class="layui-input-inline">
                            <input name="name" class="layui-input" placeholder="土地名称"/>
                        </div>
                    </div>
                    <div class="layui-inline">&emsp;
                        <div class="layui-btn icon-btn" @click="seachs()">
                            <i class="layui-icon">&#xe615;</i>搜索
                        </div>&nbsp;
                    </div>
                </div>
            </form>
            <!-- 数据表格 -->
            <div id="authoritiesTable"></div>
        </div>
    </div>
    <div id="admins" style="display: none;padding-right: 20px;">
        <br>
        <form class="layui-form" action="">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">土地名称</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="that.name" name="name" placeholder="土地名称" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">土地等级</label>
                        <div class="layui-input-block">
                            <input type="text" v-model="that.grade" name="grade" placeholder="土地等级" autocomplete="off"
                                   class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">租借价格</label>
                        <div class="layui-input-block">
                            <input type="number" v-model="that.price" name="price" placeholder="租借价格"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md6">
                    <div class="layui-form-item">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block">
                            <input type="radio" name="status" value="-1" title="禁用" :checked="that.status==-1">
                            <input type="radio" name="status" value="0" title="空闲" :checked="that.status==0">
                            <input type="radio" name="status" value="1" title="使用中" :checked="that.status==1">
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-form-item">
                        <div class="layui-col-md12">
                            <label class="layui-form-label">土地描述</label>
                        </div>
                        <div class="layui-input-block layui-col-md10">
                           <textarea  class="layui-textarea" v-model="that.note"></textarea>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript" th:src="@{/js/require.js}"></script>
<script type="text/javascript" th:src="@{/js/requireConfig.js}"></script>
<script type="text/javascript" th:src="@{/app/admin/land/land.js}"></script>
</body>
</html>